The ROme OpTimistic Simulator: core internals and programming model

نویسندگان

  • Alessandro Pellegrini
  • Roberto Vitali
  • Francesco Quaglia
چکیده

In this article we overview the ROme OpTimistic Simulator (ROOT-Sim), an open source C/MPI-based simulation package targeted at POSIX systems, which implements general-purpose parallel/distributed simulation environment relying on the optimistic (i.e. rollback based) synchronization paradigm. It offers a very simple programming model based on the classical notion of simulation-event handlers, to be implemented according to the ANSI-C standard, and transparently supports all the services required to parallelize the execution. It also offers a set of optimized protocols (e.g. CPU scheduling and state log/restore protocols) aimed at minimizing the run-time overhead by the platform, thus allowing for high performance and scalability. Here we overview the core internal mechanisms provided within ROOT-Sim, together with the offered API and the programming model that is expected to be agreed in order to produce simulation software that can be transparently run, in a concurrent fashion, on top of the ROOT-Sim layer. Short code examples are also discussed. 1. ROOT-SIM ARCHITECTURE The internal architecture of ROOT-Sim can be schematized as in Figure 1. It is composed of a set of interacting sub-systems, which ultimately rely on standard C libraries and the MPI layer. At the core of the architecture, there is an event-queue manager that maintains multiple input/output queues storing incoming (or already processed) and outgoing simulation events. Each pair of input/output queues is logically associated with a same locally hosted simulation object. The interaction between the event-queue manager and the MPI layer, in order to support event notification across different instances of the ROOT-Sim kernel, is mediated by a messaging manager which multiplexes ROOTSim defined message tags (e.g. EVENT vs ANTI_EVENT notifications) possibly travelling across different ROOT-Sim instances over the same MPI communicator, in order to exploit the associated FIFO property. The current state of the input event queues is exposed to the scheduling sub-system, which gives control to the application layer along the same thread running the scheduler. Hence, simulation events (and the associated simu∗http://www.dis.uniroma1.it/ ̃quaglia/software/ROOT-

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Simplified synchronization through optimistic linearizability

We explore a novel programming model for multicore architectures in which shared data-structures are replicated per-thread. With a suitable mechanism for broadcasting data-structure operations (which may be wait-free or lock-free) there is no longer a need for elaborate, datastructure-specific synchronization (e.g. as seen in java.util.concurrent) at each replica. Moreover, threads can lazily a...

متن کامل

Time Warp on the Go (Updated Version)

In this paper we deal with the impact of multi and many-core processor architectures on simulation. Despite the fact that modern CPUs have an increasingly large number of cores, most softwares are still unable to take advantage of them. In the last years, many tools, programming languages and general methodologies have been proposed to help building scalable applications for multi-core architec...

متن کامل

Time warp on the go

In this paper we deal with the impact of multi and many-core processor architectures on simulation. Despite the fact that modern CPUs have an increasingly large number of cores, most softwares are still unable to take advantage of them. In the last years, many tools, programming languages and general methodologies have been proposed to help building scalable applications for multi-core architec...

متن کامل

The Usefulness of CytoFoam-Core in the Diagnosis of Thyroid Metastasis From Colon Cancer: A Case Report

Introduction: We report a case of a 64-year old man with a history of colon carcinoma. He underwent fine-needle aspiration by CytoFoam-core and diagnosis of metastatic colon cancer to the thyroid gland. Case presentation: In this case report, a solid thyroid nodule in the right lobe of a 64-year-old male was aspirated. The cytological smears showed a small group of atypical cells with the obvi...

متن کامل

The Usefulness of CytoFoam-Core in the Diagnosis of Thyroid Metastasis From Colon Cancer: A Case Report

Introduction: We report a case of a 64-year old man with a history of colon carcinoma. He underwent fine-needle aspiration by CytoFoam-core and diagnosis of metastatic colon cancer to the thyroid gland. Case presentation: In this case report, a solid thyroid nodule in the right lobe of a 64-year-old male was aspirated. The cytological smears showed a small group of atypical cells with the obvi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011